#include "class.Node.h"

#ifndef _CLASS_LINEARADAPTER_H_
#define _CLASS_LINEARADAPTER_H_

class LinearAdapter
{
private:
    Node* head;
    Node* foot;
    int length;

public:
    LinearAdapter();
    virtual ~LinearAdapter();
    
    Node* getHead();
    Node* getFoot();
    Node* get(int pos);
    bool insert(Node* node, int pos);
    bool append(Node* node);
    bool append(LinearAdapter* linearAdapter);
    bool remove(int pos);
    void sort();
    int getLength();
    void clear();
};

#endif